package com.cloudcc.mobile.adapter;

import android.content.Context;

import com.cloudcc.cloudframe.adapter.CommonAdapter;
import com.cloudcc.cloudframe.adapter.ViewHolder;
import com.cloudcc.mobile.R;
import com.cloudcc.mobile.entity.CustomerEntity;

/**
 * 客户适配器
 * @author Administrator
 *
 */
public class CustomerListAdapter extends CommonAdapter<CustomerEntity> {

	public CustomerListAdapter(Context mContext) {
		super(mContext);
	}
	@Override
	public void convert(ViewHolder h, CustomerEntity t) {
		h.setText(R.id.title, t.getName());
		h.setSrc(R.id.imageView1, R.drawable.kehuimage);
	}

	@Override
	public int getLayoutId() {
		return R.layout.lead_list_item;
	}
}

